<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Route::get('/post-test', 'HomeController@postTest1');
Route::post('/post-test', 'HomeController@postTest2');

Route::get('/user/session', function (Request $request) {
	// echo '<pre>';
	// dd($request->session()->all());
	// dd(Auth::user());
	var_dump(Auth::id());
});